<template>
  <div class="tool-bar">
    <template v-for="item in title">
      <div :key="item" class="tool-bar-item">
        <span>@</span> {{ item }} <span>|</span>
      </div>
    </template>
  </div>
</template>

<script>
export default {
  name:'地图基础功能菜单组件',
  data() {
    return {
      title: ['底图', '测量', '标会', '图层', '图例', '统计分析', 'test']
    }
  }
}
</script>

<style lang="scss">
.tool-bar {
  position: absolute;
  top: 20px;
  right: 20px;
  height: 30px;
  background-color: red;
  border-radius: 10px;

  .tool-bar-item {
    display: inline;
    height: 30px;
    text-align: center;
    line-height: 30px;
    padding: 0;
    margin: 0 5px;
    cursor: pointer;
  }
}
</style>
